package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.dto.BasePdaAddDto;
import com.kaili.basic.pojo.dto.BasePdaQueryDto;
import com.kaili.basic.pojo.entity.BasePda;
import com.kaili.basic.pojo.entity.BasePdaExport;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by renzhikun on 18-6-21.
 */
@Component
public interface BasePdaService {

    void addBasePda(BasePdaAddDto basePda);

    void deleteBasePda(Long pdaId);

    void updateBasePda(BasePdaAddDto basePda);

    Page<BasePda> queryBasePda(Page<BasePda> page, BasePdaQueryDto dto);

    List<String> selectBySn(String pdaSn);

    List<String> veriBySn(String sn);

    BasePda getBySn(String pdaSn);

    List<BasePdaExport> queryPdaExport(Map<String, Object> map);

    List<Long> doImPort(List<BasePdaExport> org);
}
